<?php $this->load->view('frontend/header_layout'); ?>
<div class="row">
    <?php echo $breackcrumb; ?>
    <table class="table table-bordered">
        <thead class="center">
            <tr>
                <th class="span8">Topics</th>
                <th class="span1">Threads</th>
                <th class="span1">Posts</th>
                <th class="span2">Last Post</th>
            </tr>
        </thead>
        <tbody>
            <?php
            if (count($results)) {
                foreach ($results as $row) {
                    ?>
                    <tr>
                        <td>	
                            <?php echo anchor('chat_topic/view_thread/' . $row->topic_id, $row->topic_title); ?>
                            <p ><i><small></small><?php echo $row->topic_content; ?></small></i></p>
                        </td>
                        <td><?php echo $this->chat_topic_m->count_thread($row->topic_id); ?></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <?php
                }
            }
            ?>
        </tbody>

    </table>


</div>